STEP 7: Your program uses a function rule to create a y-value for every x-value you pass into the loop.

We can use an .append() command to add values to our empty outputs list.

  • Select the LOGIC tab in the toolkit and click on .
  • Drag out Append. Drop it INSIDE your loop.
  • Change the name in front of the command to outputs. Change the variable in parentheses to y.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)